//	   Network
//	   Elvira format

bnet "TempValvulas.pgmx" {

//		 Network Properties

comment = "";
default node states = ("present" , "absent");

// Variables

node Valvula1t(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =125;
pos_y =78;
relevance = 7.0;
purpose = "";
num-states = 3;
states = ("OK" "abierta" "cerrada");
}

node Valvula1t1(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =126;
pos_y =239;
relevance = 7.0;
purpose = "";
num-states = 3;
states = ("OK" "abierta" "cerrada");
}

node Valvula2t(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =478;
pos_y =68;
relevance = 7.0;
purpose = "";
num-states = 3;
states = ("OK" "abierta" "cerrada");
}

node Valvula2t1(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =478;
pos_y =232;
relevance = 7.0;
purpose = "";
num-states = 3;
states = ("OK" "abierta" "cerrada");
}

node Valvula3t(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =845;
pos_y =63;
relevance = 7.0;
purpose = "";
num-states = 3;
states = ("OK" "abierta" "cerrada");
}

node Valvula3t1(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =846;
pos_y =232;
relevance = 7.0;
purpose = "";
num-states = 3;
states = ("OK" "abierta" "cerrada");
}

node PermaneceAbierto(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =300;
pos_y =411;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("No" "Si");
}

node PermaneceCerrado(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =660;
pos_y =404;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("No" "Si");
}

node DistribucionFluido(finite-states) {
comment = "";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =464;
pos_y =562;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("Incorrecta" "Correcta");
}

//		 Links of the associated graph:

link Valvula1t Valvula1t1;

link Valvula1t1 PermaneceAbierto;

link Valvula1t1 PermaneceCerrado;

link Valvula2t Valvula2t1;

link Valvula2t1 PermaneceAbierto;

link Valvula2t1 PermaneceCerrado;

link Valvula3t Valvula3t1;

link Valvula3t1 PermaneceAbierto;

link Valvula3t1 PermaneceCerrado;

link PermaneceAbierto DistribucionFluido;

link PermaneceCerrado DistribucionFluido;

//		Network Relationships:

relation Valvula1t {
values = table(0.0166 0.6591 0.3243 );
}

relation Valvula1t1 Valvula1t {
values = table(0.997 0.0 0.0 0.002 1.0 0.0 0.001 0.0 1.0 );
}

relation Valvula2t {
values = table(0.01 0.5946 0.3954 );
}

relation Valvula2t1 Valvula2t {
values = table(0.995 0.0 0.0 0.003 1.0 0.0 0.002 0.0 1.0 );
}

relation Valvula3t {
values = table(1.0 0.0 0.0 );
}

relation Valvula3t1 Valvula3t {
values = table(0.993 0.0 0.0 0.004 1.0 0.0 0.003 0.0 1.0 );
}

relation PermaneceAbierto Valvula1t1 Valvula2t1 Valvula3t1 {
values = table(1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 1.0 1.0 1.0 
1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 1.0 
1.0 1.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 );
}

relation PermaneceCerrado Valvula1t1 Valvula2t1 Valvula3t1 {
values = table(1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0 0.0 0.0 
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 
0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 );
}

relation DistribucionFluido PermaneceAbierto PermaneceCerrado {
values = table(0.0 1.0 1.0 1.0 1.0 0.0 0.0 0.0 );
}

}

